package com.isunland.managesystem.ui;

import android.app.SearchManager;
import android.content.Intent;
import android.support.v4.app.Fragment;
import android.util.Log;
import com.isunland.managesystem.R;

//委派任务内容list列表 -activity
public class DelegateTaskActivity extends SingleFragmentActivity {

  @Override protected Fragment createFragment() {
    //		DelegateTaskContent item=(DelegateTaskContent)getIntent().getSerializableExtra(DelegateTaskListFragment.EXTRA_ADDDELAGATETASK);
    return new DelegateTaskListFragment();
  }

  @Override protected void onNewIntent(Intent intent) {
    super.onNewIntent(intent);
    DelegateTaskListFragment fragment =
        (DelegateTaskListFragment) getSupportFragmentManager().findFragmentById(
            R.id.fragmentContainer);
    if (Intent.ACTION_SEARCH.equals(intent.getAction())) {
      String query = intent.getStringExtra(SearchManager.QUERY);
      Log.i(TAG, "Received a new search query:" + query);

      //			fragment.updateItems(query);
    }
  }
}
